import { Controller, Post } from '@nestjs/common'
import { EmailService } from './email.service'

@Controller('email')
export class EmailController {
  constructor(private readonly emailService: EmailService) {}
  @Post('send')
  async sendEmail() {
    await this.emailService.sendEmail('wuxuyi@kando.com.cn', 'Test Subject', 'Test Text')
  }
}
